package mutsumimod.cards.custom;

import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.common.DamageAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.cards.DamageInfo;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.util.CardStats;
import mutsumimod.util.damageinfo.FourBreakDamageInfo;

public class FourBreak extends BaseCard {
    public static final String ID = makeID(FourBreak.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.ATTACK,
            CardRarity.RARE,
            CardTarget.ENEMY,
            1
    );

    public FourBreak() {
        super(ID, info);
        setAttr(1,0,4);
        setAttrUpg(0,0,2);
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        for(int i=0;i<magicNumber-1;i++) {
            addToBot(new DamageAction(m, new FourBreakDamageInfo(AbstractDungeon.player
                    , damage, DamageInfo.DamageType.NORMAL), AbstractGameAction.AttackEffect.SLASH_VERTICAL));
        }
        damageMonster(m);
    }

    @Override
    public AbstractCard makeCopy() {
        return new FourBreak();
    }


}
